<!DOCTYPE html>
<html>
  <head>
    <meta name="layout" content="main2"/>
    <g:set var="entityName" value="${message(code: 'workflowInstanceUser.label', default: 'WorkflowInstanceUser')}"/>
    <title>待办</title>
  </head>
  <body>
    <div class="main-body">
        <div class="page-wrapper">
            <!-- Page-header start -->
            <div class="page-header">
                <div class="page-header-title">
                    <h4>待办列表</h4>
                </div>

                <div class="page-header-breadcrumb">
                    <ul class="breadcrumb-title">
                        <li class="breadcrumb-item">
                            <a href="/salesDashboard/index">
                                <i class="icofont icofont-home"></i>
                            </a>
                        </li>
                        <li class="breadcrumb-item"><a href="#!">待办列表</a>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- Page-header end -->
            <!-- Page-body start -->
            <div class="page-body">
                <!-- Hover table card start -->
                <div class="card">
                    <div class="card-header">
                        <h5>待办列表</h5>
                    </div>

                    <div class="card-block">
                      <table class="table table-striped table-hover">
                        <thead>
                          <tr>
                            <g:sortableColumn property="project.name" title="${message(code: 'workflowInstanceUser.stage.instance.project.name.label', default: '项目名称')}"/>
                            <g:sortableColumn property="name" title="${message(code: 'workflowInstanceUser.stage.instance.name.label', default: '工作流')}"/>
                            <g:sortableColumn property="stage" title="${message(code: 'workflowInstanceUser.stage.instance.stage.label', default: '当前阶段')}"/>
                            <g:sortableColumn property="status" title="${message(code: 'workflowInstanceUser.stage.instance.status.label', default: '当前状态')}"/>
                            <g:sortableColumn property="createdDate" title="${message(code: 'workflowInstanceUser.stage.instance.createdDate.label', default: '创建时间')}"></g:sortableColumn>
                            <g:sortableColumn property="modifiedDate" title="${message(code: 'workflowInstanceUser.stage.instance.modifiedDate.label', default: '修改时间')}"></g:sortableColumn>
                          </tr>
                        </thead>
                        <tbody>
                          <g:each in="${workflowInstanceUserList}">
                            <tr>
                              <td>
                                <g:link controller="project" action="show" id="${it[0]}">${it[1]}</g:link>
                              </td>
                              <td>${it[2]}</td>
                              <td>${it[3]}</td>
                              <td>${it[4]}</td>
                              <td><g:formatDate format="yyyy-MM-dd HH:mm:ss" date="${it[5]}"/></td>
                              <td><g:formatDate format="yyyy-MM-dd HH:mm:ss" date="${it[6]}"/></td>
                            </tr>
                          </g:each>
                        </tbody>
                      </table>

                            <div class="row m-0">
                              <div class="col-xs-12 col-sm-12 col-md-5">
                                <div class="dataTables_info" id="dom-jqry_info" role="status" aria-live="polite">每页10条，共${workflowInstanceUserCount}条</div>
                              </div>
                              <div class="col-xs-12 col-sm-12 col-md-7">
                            <div class="dataTables_paginate" id="dom-jqry_paginate">
                                 <div class="pagination">
                                    <g:paginate total="${workflowInstanceUserCount ?: 0}" params="${params}" />

                                 </div>
                            </div>
                            </div>
                            </div>
                    </div>

                </div>

            <!-- Hover table card end -->
        </div>

        <!-- Page-body end -->
    </div>
    </div>
  </body>
</html>
